package com.leyou.item;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


/**
 * <h3>leyou-project</h3>
 * <p></p>
 *
 * @author : hhw
 * @date : 2020-05-20 21:07
 **/
//默认扫描的是当前类下的文件,所以要指定扫描common中的包
@SpringBootApplication(scanBasePackages = {"com.leyou.item", "com.leyou.common.advice"})
@EnableDiscoveryClient
@MapperScan(basePackages = "com.leyou.item.mapper")
public class LyItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyItemApplication.class, args);

    }
}
